Town Editor
PAGE - 3 -
Go back to page -1- intro
Merchants - ADDING A WEAPON MERCHANT page 4
Merchants  - page 3  CLASSES OF MERCHANTS 

Now we will create a weapon merchant, but before we do, let's talk about what this is about (background) merchants in U4 exist as special NPC's who do NOT talk like normal NPC's, therefore have no talk id, but are identified by merchant id#'s. You can have up to 255 merchant id's (U4 has about 65 total!) All merchant

id's are stored in MERCHANT.OVL. See over right to examine a real weapon vendor. The id is 23 and the type of establishment is Weapons. The owner is Winston, who runs Windsor Weaponry. He sells a Stave for 20, Dagger for 2, Sling for 25 and Sword for 300. The 'X' are just nulls (blanks/unused). The good part is you do not need to edit this with notepad to create your own, the town-editor.exe will do it for you! I have taken great pains to eliminate this tedious task because a simple error will cause all sorts of weird things to happen.

 

SAMPLE EXCERPT FROM MERCHANT.OVL
`23
Weapons
Winston
Windsor Weaponry
Stave
Dagger
Sling
Sword
20
2
25
300
X
X
X
Let's see another example - A generic Armour Store. This one can be used and reused many times in many towns because it's like McDonalds or Kmart, many establishments all over. Winston's Weapons most likely will be found in just 1 town, but that's up to you. You can edit the items for sale, and prices, and in some vendor classes, the welcome message etc...

 

`24
Armour
Owner
General Armour
3                             <------ number of items for sale
Cloth
Leather
Chain
50
200
600
X
X
X
X
Let's  look at a WEAPON shop class and see what types of weapons are available in the game -  The weapon class store must sell between 1- 4 items

Stave
Dagger
Sling
Mace
Axe
Sword
Bow
Crossbow
Halberd
Magic Axe
Magic Sword
Magic Bow
Magic Wand
Mys. Weapon

Mys. Weapon is ONLY FOUND as a quest and not purchased

These MUST be typed EXACTLY like above. You can set any price.

 

Let's  look at a ARMOUR shop class and see what types of Armours are available in the game - 

Cloth
Leather
Chain
Plate
Magic Chain
Magic Plate
Mys. Armour

These MUST be typed EXACTLY like above. You can set any price.

Mys. Armour is ONLY FOUND as a quest and not purchased

 

 

 

 

 

Let's  look at a GUILD shop class and see what types of items  are available in the game - 

Torches 

Keys

Gems

Sextants ('D')

These MUST be typed EXACTLY like above. You can set any price.

 

Let's  look at a HERB shop class and see what's available in the game - 

First you can edit the message "Special Herbs:Only the Finest!", and owner's name and shop's name. The next set of 6 (must=6) numbers are the herbs prices. - In order they are- 

Sulfurous Ash,Ginseng,Garlic,Spider Silk,Blood Moss, and Black Pearl

 `27
Herbs
Margot
Magical Herbs
Special Herbs:Only the Finest!
2
5
6
3
6
9
X
X
X
X

These MUST be typed EXACTLY like above. You can a price between 1-9 ONLY

Let's  look at a PUB shop class and see what types of items  are available in the game -  The owner's name and shop's name and 1 food item can be added (Lamb Chops) The game has these as 2gp fixed price

`22
Pub
Sam
Jolly Spirits
Lamb Chops
X
X
X
X
X
X
X
X
X
X

These MUST be typed EXACTLY like above. You can set any price.

 

Let's  look at a HEALER shop class and see what's available in the game - The owner's name and shop's name are only editable here. Everything else is fixed.

`20
Healer
Celest
Wound Healing
X
X
X
X
X
X
X
X
X
X
X

Let's  look at a INN  shop class and see what types of items  are available in the game -  The owner's name and shop's name and the description are editable ("We have a modest sized:room with 1 bed for 15gp")

The 15 corresponds to 15gp (per stay)

The 05,28 are the yy,xx location the avatar sleeps once the vendor is paid (like hole & camp)

`21
Inn
Jason
Britannia Manor
We have a modest sized:room with 1 bed for 15gp
15
05
28
X
X
X
X
X
X
X

These MUST be typed EXACTLY like above. You can set any price.

 

Let's  look at a FOOD shop class and see what's available in the game - The owner's name and shop's name and description ("We sell the best packed rations!") are editable. The 35 = 35gp (price per 25 rations)

`34
Food
Donnar
The Dry Goods
We sell the best packed rations!
35
X
X
X
X
X
X
X
X
X

 

These MUST be typed EXACTLY like above. You can set any price.

Let's  look at a Tinker class and see what this class is all about. First off, the Tinker class is NOT in the original U4. It is a special class and this merchant has the ability to create items and enchant stuff for a fee. For example, talking to this merchant, he will greet you and then ask what stuff you want to give him to create an item. These item "recipes" are found in 'recipes.ini'. You choose from your inventory, and if a correct combination exists, the newly item is created. A example -

mix 1 part Cookie Sheet and 1 part Bread Dough = 5 Rations

Editable items:
The owner's name, shop's name and the description are editable
i.e. ("Just the best in Tinkering!"). The price per item created is also user adjustable. In this case, 35gp per 5 Rations.

`99
Tinker
Duran  McRae
Tinker House
Just the best in Tinkering!
35
X
X
X
X
X
X
X
X
X